Intersoft.Client.UI.Aqua.UXDesktop Namespace > UXMessageBox Class > Show Method : Show(IWindow,String,String,MessageBoxButton,MessageBoxImage,Action<DialogResult>) Method |
Public Overloads Shared Sub Show( _ ByVal window As IWindow, _ ByVal message As String, _ ByVal caption As String, _ ByVal button As MessageBoxButton, _ ByVal image As MessageBoxImage, _ ByVal resultCallback As Action(Of DialogResult) _ )
Dim window As IWindow Dim message As String Dim caption As String Dim button As MessageBoxButton Dim image As MessageBoxImage Dim resultCallback As Action(Of DialogResult) UXMessageBox.Show(window, message, caption, button, image, resultCallback)
public static void Show( IWindow window, string message, string caption, MessageBoxButton button, MessageBoxImage image, Action<DialogResult> resultCallback )
public: static void Show( IWindow^ window, String^ message, String^ caption, MessageBoxButton button, MessageBoxImage image, Action<DialogResult>^ resultCallback )
private void UXButton2_Click(object sender, RoutedEventArgs e) { UXMessageBox.Show( // owner of the message box null, // message "Do you want to save this document before the application closes?", // caption "Notepad", // predefined buttons Intersoft.Client.UI.Aqua.UXDesktop.MessageBoxButton.YesNoCancel, // predefined image MessageBoxImage.Question, // callback handler for the close event (dialogResult) => { if (dialogResult == Intersoft.Client.Framework.DialogResult.OK) { // save the document } } ); }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2